examples/example-7 word cloud/ui.R

library(shiny)
library(ECharts2Shiny)


shinyUI(fluidPage(

  # We HAVE TO to load the ECharts Word Cloud extension javascript library in advance
  loadEChartsLibrary(),


  h2("Largest Continents in Area (km^2)"),
  "Data Source: http://geography.about.com/od/lists/a/largecontinent.htm",

  fluidRow(
    column(6,
           tags$div(id="test_1", style="width:80%;height:250px;"),  # Specify the div for the chart. Can also be considered as a space holder
           deliverChart(div_id = "test_1")  # Deliver the plotting
           ),

    column(6,
           tags$div(id="test_2", style="width:80%;height:250px;"),  # Specify the div for the chart. Can also be considered as a space holder
           deliverChart(div_id = "test_2")  # Deliver the plotting
    )
  )



)
)
XD-DENG/ECharts2Shiny documentation built on Oct. 8, 2020, 10:51 a.m.